/*
 * @Author: Karl Liris
 * @Date: 2021-02-26 09:38:04
 * @LastEditTime: 2021-03-17 08:21:54
 */
module.exports = {
  pages: {
    index: {
      entry: 'src/main.js',
      title: '代理小工具',
    },
  },
  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
      builderOptions: {
        productName: '代理小工具',
        appId: 'com.tcsl.proxytools',
        copyright: 'Copyright © 天津市神州商龙科技股份有限公司',
        publish: [{
          provider: 'generic',
          url: 'http://192.168.8.134:3000/proxytools/',
        }],
        extraResources: ['./extraResources/**', {
          from: 'node_modules/regedit/vbs',
          to: 'vbs',
          filter: ['**/*'],
        }],
        win: {
          target: [{
            target: 'nsis',
            arch: ['ia32'],
          }],
        },
        nsis: {
          oneClick: true,
          guid: 'proxytools',
          allowToChangeInstallationDirectory: false,
          shortcutName: '代理小工具',
        },
      },
    },
  },
};
